package com.prs.core.workflow.dto;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: Document 
 * @Description:
 * @author flybonew@163.com
 * @date 2012-12-29 下午4:31:20 
 *
 */
@Entity
@Table(name = "SYSTEM_DOCUMENT")
public class Document implements Serializable{
	
	
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@Id
	@Column(name = "ID_",length= 36,nullable=false)
	@GenericGenerator(name="uuid",strategy="uuid")
	@GeneratedValue(generator="uuid")
	private String id;
	
	/**
	 * 
	 */
	@Column(name="TITLE_",length=1000,nullable=false)
	private String title;
	
	/**
	 * 
	 */
	@Column(name="PROCESS_INSTANCE_ID_",length=50,nullable=false)
	private String processInstanceId;
	
	/**
	 * 
	 */
	@Column(name="PROCESS_KEY_",length=100,nullable=false)
	private String process_Key_;
	
	/**
	 *
	 */
	@Column(name="STATUS_",nullable=false)
	private Integer status;
	
	/**
	 *
	 */
	@Column(name="NOW_USER_",length=4000,nullable=true)
	private String nowUser;
	
	/**
	 *
	 */
	@Column(name="COMMIT_TIME_",nullable=false)
	private Date commitTime;
	
	/**
	 *
	 */
	@Column(name="PROCESS_NAME_",length=100,nullable=false)
	private String processName;
	
	/**
	 *
	 */
	@Column(name="AUTHOR",length=40)
	private String author;
	
	/**
	 *
	 */
	@Column(name="AUTHOR_ID_",length=40)
	private String authorId;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the processInstanceId
	 */
	public String getProcessInstanceId() {
		return processInstanceId;
	}

	/**
	 * @param processInstanceId the processInstanceId to set
	 */
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	/**
	 * @return the process_Key_
	 */
	public String getProcess_Key_() {
		return process_Key_;
	}

	/**
	 * @param process_Key_ the process_Key_ to set
	 */
	public void setProcess_Key_(String process_Key_) {
		this.process_Key_ = process_Key_;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the nowUser
	 */
	public String getNowUser() {
		return nowUser;
	}

	/**
	 * @param nowUser the nowUser to set
	 */
	public void setNowUser(String nowUser) {
		this.nowUser = nowUser;
	}

	/**
	 * @return the commitTime
	 */
	public Date getCommitTime() {
		return commitTime;
	}

	/**
	 * @param commitTime the commitTime to set
	 */
	public void setCommitTime(Date commitTime) {
		this.commitTime = commitTime;
	}

	/**
	 * @return the processName
	 */
	public String getProcessName() {
		return processName;
	}

	/**
	 * @param processName the processName to set
	 */
	public void setProcessName(String processName) {
		this.processName = processName;
	}

	/**
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * @param author the author to set
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * @return the authorId
	 */
	public String getAuthorId() {
		return authorId;
	}

	/**
	 * @param authorId the authorId to set
	 */
	public void setAuthorId(String authorId) {
		this.authorId = authorId;
	}
}
